package model

import "go.mongodb.org/mongo-driver/bson/primitive"

type Workflow struct {
	ID   primitive.ObjectID     `json:"id" bson:"id"`
	Data map[string]interface{} `json:"data" bson:"data"`
	Category string `json:"category" bson:"category"`

	TenantModel `json:",inline" bson:",inline"`
}

func (w *Workflow) GetId() string {
	return w.ID.Hex()
}

func (w *Workflow) SetId(id primitive.ObjectID) {
	w.ID = id
}
